<script setup lang="ts">
import { defineProps } from 'vue'
defineProps({
  title: {
    required: false,
    type: String,
  }
})
</script>

<template>
  <a-flex vertical class="area-box-model">
    <a-card>
      <p v-if="title" class="area-model-title">{{title}}</p>
      <slot></slot>
      <a-flex justify="end">
        <slot name="rightFooter"></slot>
      </a-flex>
    </a-card>
  </a-flex>
</template>

<style scoped lang="scss">
.area-box-model{
  position: relative;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 1rem;
}
.area-model-title{
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 20px;
  margin-left: 10px;
  border-bottom: 2px dashed #4a4a4a4a;
}
</style>